package org.csy.generic.test04;

/**
 * 泛型方法的应用
 * @author CSY
 * @date 2025 - 03 - 26
 */
public class GenericTest {
    public <T> T sayHello(T sth){
        T a = sth;
        System.out.println(a.getClass().getSimpleName() + ":"+sth);
        return a;
    }

    public <T1, T2, T3> void sayGoodBye(T1 s1, T2 s2, T3 s3) {
        System.out.println(s1.getClass().getName()+":"+s1);
        System.out.println(s2.getClass().getName()+":"+s2);
        System.out.println(s3.getClass().getName()+":"+s3);
    }
}
